<?php
namespace Shama\Task;
/**
 * Task Status Object.
 *
 * This object will maintain Tasks Status.
 * @see Shama\Task;
 *
 * @author Xavier VILAIN
 * @package \Shama\Task
 *
 * @property int	$status			Status Code (varchar 10)
 * @property string	$language		Language (varchar 5)
 * @property string	$label			Label
 * @property bool	$active			Active or not
 * @property bool	$standard		Standard or not. Standard are defined
 * in the object as constant and cannot be deleted
 */
class Priority extends \Fox\Object {

	/**
	 * To standardize the creation/updat
	 * @return type label
	 */
	public function label() {
		return $this->label;
	}
}
\Fox\Dao::infos(Priority::className(),new \Fox\Object\Info('task_priorities', \Fox\Databases::DB_APP));

\Fox\Dao::useZone(Priority::className(),new \Fox\Dao\MemoryCacheZone(\Fox\Dao\MemoryCacheZone::PERIOD_FOREVER,Priority::cacheDirectory()));